package day02;

public class DataTypeDemo {
    public static void main(String[] args) {



/*
        byte b1=5;
        byte b2=6;
        byte b3=(byte)(b1+b2);
        byte b4=127;
        System.out.println(b3);
        System.out.println('2'+'2');//100
        System.out.println(b4);

 */

/*
        int a='女';
        System.out.println(a);
        int d='0';
        System.out.println(d);//48

        char b=97;
        System.out.println(b);//a
        int c='A';
        System.out.println(c);//65

        System.out.println('A');//A
        System.out.println('a'+'a');//194
        System.out.println( 2+'a');//99

 */







//        System.out.println(2+2);//4
//        System.out.println(2+'2');//52
//        System.out.println('2'+'2');//100
//        System.out.println('2');//2
//
//        int a='我';
//        System.out.println(a);
//        char b=48;
//        System.out.println(b);//0
/*
        int a=5;
        long b=5;
        int c=(int) b;
        System.out.println(c);
//
        long d=5;
        double e=5;
        System.out.println(e);
//
        long f=10000000000L;
        int g=(int)f;
        System.out.println(g);
//
        double h=24.567;
        int k=(int)h;
        System.out.println(k);

 */
        int a=5;
        long b=5;
        int c=(int)b;
        System.out.println(c);//5

        long d=5;
        double e=5;
        System.out.println(e);//5.0

        long f=10000000000L;
        int g=(int)f;
        System.out.println(g);

        double h=35.890;
        int i=(int)h;
        System.out.println(i);//35




/*
        char c1='n';
       char c2='不';
       char c3='3';
       char c4=48;
        System.out.println(c4);

 */
        /*
        char c1='女';
        char c2='e';
        char c3='6';
        char c4=' ';
//        char c5=女;
//        char c6='';
//        char c7='10';
        char c8=65535;
        System.out.println(c8);
        char c9='\\';
        System.out.println(c9);
        char c10='?';
        System.out.println(c10);

         */










/*
       boolean a=true;
        boolean b=false;
//        boolean c=25.6;
        boolean a1=true;
        boolean b1=false;
//        boolean c=jj;
 */
        /*
        double a=25.678;
float b=24.678F;

double c=3.0,d=2.9;
        System.out.println(c-d);
double c1=4.5,d1=3.9;
        System.out.println(c1-d1);
double c2=6.0,d2=5.1;
        System.out.println(c2-d2);
         */

//        long a=25L;
//        long b=10000000000L;
//        Long d=365L*24*60*60*1000;
//        System.out.println(d);
//        System.out.println(Long.MAX_VALUE);
//
//
//        long a=25L;
//        //Long b=10000000000;
//        long c=10000000000L;
////        long d=365L*24*60*60*1000;
//        System.out.println(d);
//
//        long e=1000000000*2*10L;
//        System.out.println(e);
//        long f=1000000000*3*10L;
//        System.out.println(f);
//        long g=1000000000L*3*10;
//        System.out.println(g);

//       int a=1;
//        //int b=10000000000;
//        System.out.println(5/2);//2
//        System.out.println(2/5);//0
//        System.out.println(5/2.0);//2.5
//        int c=2147483647;
//        c=c+1;
//        System.out.println(c);


    }
}
